package com.mycom.service.impl;

import com.mycom.dao.DepartmentDao;
import com.mycom.dao.ItemDao;
import com.mycom.pojo.Department;
import com.mycom.pojo.DepartmentEmployee;
import com.mycom.pojo.Item;
import com.mycom.service.DepartmentService;
import com.mycom.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentDao departmentDao;

    @Override
    public List<Department> findAll() {
        return departmentDao.findAll();
    }

    @Override
    public List<DepartmentEmployee> findAllDepartmentEmployees() {
        return departmentDao.findAllDepartmentEmployees();
    }
}
